package com.cjk.console.enums;

import java.util.ArrayList;
import java.util.List;

public enum EventTopic {

	REBOOT_CALLBACK("RebootCallback", "重启回调"),
	CONFIG_TV_CALLBACK("ConfigTvCallback", "配置频道回调"),
	CONFIG_DEVICE_CALLBACK("ConfigDeviceCallback", "配置设备回调"),
	CREATE_TUNNEL_CALLBACK("CreateTunnelCallback", "创建隧道回调"),
	CONFIG_AD_CALLBACK("ConfigAdCallback", "配置广告回调");
	
	private String code;
	private String label;
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	
	private EventTopic(String code, String label) {
		this.code = code;
		this.label = label;
	}
	
	public static List<String> getEnumStringList() {
		List<String> events = new ArrayList<>();
		for (EventTopic eventTopic : EventTopic.values()) {
			events.add(eventTopic.toString());
		}
		return events;
	}
}
